import request from './request/index.js'

const apiMbrUsrR = (d) => request({ method: 'get', url: '/member/user/get', data: d }) // 读 - 
const apiMbrUsrInfoR = (d) => request({ method: 'get', url: '/member/user/getUserinfo', data: d }) // 读 - 
const apiMbrUsrInfoSmpR = (d) => request({ method: 'get', url: '/member/user/getMemberUserSample', data: d }) // 读 - 无需登录
const apiMbrUsrPg = (d) => request({ method: 'get', url: '/member/user/getUserByCon', data: d }) // 分页 - 用户
const apiMbrUsrWxBd = (d) => request({ method: 'post', url: '/member/user/change-wx', data: d }) // 微信绑定
const apiFaceZFB = (d) => request({ method: 'post', url: '/member/face/recognitionZFB', data: d }) //支付宝人脸识别
const apiFaceQuery = (d) => request({ method: 'get', url: '/member/face/query', data: d }) //支付宝查询认证结果
export const ApiMbrUsr = {
  R: apiMbrUsrR,
  InfoR: apiMbrUsrInfoR,
  InfoSmpR: apiMbrUsrInfoSmpR,
  Pg: apiMbrUsrPg,
  WxBd: apiMbrUsrWxBd,
  FaceZFB: apiFaceZFB,
  FaceQuery: apiFaceQuery,
}

const apiMbrSgnC = (d) => request({ method: 'post', url: '/member/webSigning/create', data: d }) // 增 - 签约
const apiMbrSgnR = (d) => request({ method: 'get', url: '/member/webSigning/get', data: d }) // 查 -
const apiMbrSgnPg = (d) => request({ method: 'get', url: '/member/webSigning/page', data: d }) // 列表 -
const apiMbrSgnUpg = (d) => request({ method: 'get', url: '/member/webSigning/update', data: d }) // 签约 - 升级签约
export const ApiMbrSgn = {
  C: apiMbrSgnC,
  R: apiMbrSgnR,
  Pg: apiMbrSgnPg,
  Upg: apiMbrSgnUpg,
}

const apiMbrAuthUpg = (d) => request({ method: 'post', url: '/member/webUserAuthSign/update', data: d }) // 认证 - 个人升级为企业
const apiMbrAuthChk = (d) => request({ method: 'get', url: '/member/webUserAuthSign/exists', data: d }) // 是否认证
export const ApiMbrAuth = {
  Upg: apiMbrAuthUpg,
  Chk: apiMbrAuthChk,
}

const apiMbrAuLo = (d) => request({ method: 'post', url: '/member/auth/logout', data: d }) // 退出登录
export const ApiMbrAu = {
  Lo: apiMbrAuLo,
}